package com.ofo.util;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;

@WebListener
public class InitDataSourceListener implements ServletContextListener {

	@Override
	public void contextDestroyed(ServletContextEvent arg0) {
		System.out.println("应用关闭，销毁数据");
	}

	@Override
	public void contextInitialized(ServletContextEvent arg0) {
		System.out.println("应用启动，初始化数据");

//		YungouMonitoringServer.selectGoodsInfo();
	}

}
